package com.example;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: bjc
 * Date: 2025-07-02
 * Time: 21:38
 */
@ConfigurationProperties(prefix = "student") //告诉springboot将本类中的属性和配置文件中的student.*进行绑定
@Component //表示将当前类的bean对象的创建交给spring容器管理
@Data
public class Student {
    private Integer id;
    private String name;
    private Integer age;
}
